/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.flexengine.component;

import com.flexengine.view.Graphics;
import java.awt.Color;

/**
 * @author Luann R. Athayde
 * @version 1.0
 * @since 1.0
 */
public class Separator extends GameComponent {
    
    private Color color;

    public Separator() {
        super("Separator");
        color = Color.WHITE;
    }

    @Override
    public void render(Graphics g) {
        g.setColor(color);
        g.fillRect((int)getX(), (int)getY(), getSize().width, getSize().height);
    }

    @Override
    public void update(Long time, Long totalTime) {
    }
    
    public void setColor(Color color) {
        this.color = color;
    }

    public Color getColor() {
        return color;
    }
    
}
